package com.example.logistics_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.xinzi.JibenKaoqinhesuan;
import com.example.logistics_oa.service.JibenKaoqinhesuanService;
import com.example.logistics_oa.mapper.JibenKaoqinhesuanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 安徽彭于晏
* @description 针对表【jiben_kaoqinhesuan】的数据库操作Service实现
* @createDate 2023-02-02 15:41:13
*/
@Service
public class JibenKaoqinhesuanServiceImpl extends ServiceImpl<JibenKaoqinhesuanMapper, JibenKaoqinhesuan>
    implements JibenKaoqinhesuanService{

    @Autowired
    JibenKaoqinhesuanMapper jibenKaoqinhesuanMapper;

    @Override
    public int insertAll(JibenKaoqinhesuan jibenKaoqinhesuan) {
        return jibenKaoqinhesuanMapper.insertAll(jibenKaoqinhesuan);
    }

    @Override
    public List<JibenKaoqinhesuan> selectall(String jibenId) {
        return jibenKaoqinhesuanMapper.selectall(jibenId);
    }

    @Override
    public int updateKaoQinOnePerson(int jibenZhujian) {
        return jibenKaoqinhesuanMapper.updateKaoQinOnePerson(jibenZhujian);
    }

    @Override
    public int updateAllKaoqin(String jibenId) {
        return jibenKaoqinhesuanMapper.updateAllKaoqin(jibenId);
    }

    @Override
    public List<JibenKaoqinhesuan> selectByIdAndSend(String jibenId, int jibensend) {
        return jibenKaoqinhesuanMapper.selectByIdAndSend(jibenId, jibensend);
    }

    @Override
    public List<JibenKaoqinhesuan> selectOnePerson(String jibenId, String jibenGonghao) {
        return jibenKaoqinhesuanMapper.selectOnePerson(jibenId,jibenGonghao);
    }
}




